var mongoose = require('mongoose')
var Schema = mongoose.Schema
var RegistryBucketSchemaConfig = {
  versionKey: false,
  timestamps: {
    createdAt: 'created_at',
    updatedAt: false
  }
}

var RegistryBucketSchema = new Schema({
  registry: {type: Schema.Types.ObjectId, ref: 'Registry'},
  registrant: {type: Schema.Types.ObjectId, ref: 'User'},
  data: [Schema.Types.Mixed]
}, RegistryBucketSchemaConfig)

exports = module.exports = RegistryBucketSchema
